package com.wgts.wgts.dagger.module;

import com.wgts.wgts.dagger.scope.ActivityScope;
import com.wgts.wgts.mvp.model.IEvaluateActivityModel;
import com.wgts.wgts.mvp.model.imp.EvaluateActivityModel;
import com.wgts.wgts.mvp.presenter.IEvaluateActivityPresenter;
import com.wgts.wgts.mvp.presenter.imp.EvaluateActivityPresenter;
import com.wgts.wgts.mvp.view.IEvaluateActivityView;
import com.wgts.wgts.netmodle.NetService;

import dagger.Module;
import dagger.Provides;

/*
 *
 *
 *   data:2018/10/1510:56
 *
 */
@Module
public class EvaluateActivityModule {
    private IEvaluateActivityView view;

    public EvaluateActivityModule(IEvaluateActivityView view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    public IEvaluateActivityView provideView(){
        return view;
    }

    @ActivityScope
    @Provides
    public IEvaluateActivityModel provideModel(NetService netService){
        return new EvaluateActivityModel(netService);
    }

    @ActivityScope
    @Provides
    public IEvaluateActivityPresenter providePresenter(IEvaluateActivityView view, IEvaluateActivityModel model){
        return new EvaluateActivityPresenter(view, model);
    }
}
